import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";

// 导入需要使用的组件
import DownloadList from "../pages/DownloadList";
import About from "../pages/About";
import Contact from "../pages/Contact";
import NotFound from "../pages/NotFound";

const AppRouter = () => {
  return (
    <Routes>
      <Route path="/" element={<DownloadList />} />
      <Route path="/about" element={<About />} />
      <Route path="/Contact" element={<Contact />} />
      <Route path="*" element={<NotFound />} />
    </Routes>
  );
};

export default AppRouter;
